﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="MyEntitiesControl.ascx.vb"
    Inherits="Controls_MyEntitiesControl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<style type="text/css">
    .style1
    {
        height: 23px;
    }
    .style7
    {
        width: 112px;
    }
    .style8
    {
        width: 136px;
    }
    .style9
    {
        width: 136px;
        height: 26px;
    }
    .style10
    {
        height: 26px;
    }
</style>
<table>
    <tr>
        <td rowspan="3" valign="top">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID,EntityTypeId"
                DataSourceID="ObjectDataSource1" CellPadding="4" ForeColor="#333333">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                        SortExpression="ID" Visible="False" />
                    <asp:BoundField DataField="Name" HeaderText="Co. Name" SortExpression="Name" />
                    <asp:BoundField DataField="CompanyRegNo" HeaderText="Co. Reg. No" SortExpression="CompanyRegNo" />
                    <asp:BoundField DataField="VATRegNO" HeaderText="VAT Reg. No" SortExpression="VATRegNO" />
                    <asp:BoundField DataField="DateCreated" HeaderText="Created" SortExpression="DateCreated" />
                    <asp:TemplateField HeaderText="Type" SortExpression="EntityTypeId">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtEntityTypeId" runat="server" Text='<%# Bind("EntityTypeId") %>'></asp:TextBox>
                            <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="EditTypeDS" DataTextField="Name" DataValueField="Id" SelectedValue='<%# Bind("EntityTypeId") %>'>
                            </asp:DropDownList>
                            <asp:ObjectDataSource ID="EditTypeDS" runat="server" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_lkp_EntityTypeSelectTableAdapter" UpdateMethod="Update">
                                <DeleteParameters>
                                    <asp:Parameter Name="Id" Type="Int32" />
                                </DeleteParameters>
                                <InsertParameters>
                                    <asp:Parameter Name="Name" Type="String" />
                                    <asp:Parameter Name="Active" Type="Boolean" />
                                </InsertParameters>
                                <SelectParameters>
                                    <asp:ControlParameter ControlID="txtEntityTypeId" Name="Id" PropertyName="Text" Type="Int32" />
                                </SelectParameters>
                                <UpdateParameters>
                                    <asp:Parameter Name="Id" Type="Int32" />
                                    <asp:Parameter Name="Name" Type="String" />
                                    <asp:Parameter Name="Active" Type="Boolean" />
                                </UpdateParameters>
                            </asp:ObjectDataSource>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblEntityTypeId" runat="server" Text='<%# Bind("EntityTypeId") %>' Visible="False"></asp:Label>
                            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="ItemTypeDS" GridLines="None" ShowHeader="False" Width="101px">
                                <Columns>
                                    <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                                </Columns>
                            </asp:GridView>
                            <asp:ObjectDataSource ID="ItemTypeDS" runat="server" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_lkp_EntityTypeSelectTableAdapter" UpdateMethod="Update">
                                <DeleteParameters>
                                    <asp:Parameter Name="Id" Type="Int32" />
                                </DeleteParameters>
                                <InsertParameters>
                                    <asp:Parameter Name="Name" Type="String" />
                                    <asp:Parameter Name="Active" Type="Boolean" />
                                </InsertParameters>
                                <SelectParameters>
                                    <asp:ControlParameter ControlID="lblEntityTypeId" Name="Id" PropertyName="Text" Type="Int32" />
                                </SelectParameters>
                                <UpdateParameters>
                                    <asp:Parameter Name="Id" Type="Int32" />
                                    <asp:Parameter Name="Name" Type="String" />
                                    <asp:Parameter Name="Active" Type="Boolean" />
                                </UpdateParameters>
                            </asp:ObjectDataSource>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_GetEntityInfo_ByPersonIdTableAdapter" DeleteMethod="Delete" InsertMethod="Insert" UpdateMethod="Update">
                <DeleteParameters>
                    <asp:Parameter Name="EntityID" Type="Int32" />
                </DeleteParameters>
                <InsertParameters>
                    <asp:Parameter Name="Name" Type="String" />
                    <asp:Parameter Name="CompanyRegNo" Type="String" />
                    <asp:Parameter Name="DateCreated" Type="DateTime" />
                    <asp:Parameter Name="VATRegNo" Type="String" />
                    <asp:Parameter Name="EntityTypeId" Type="Int32" />
                    <asp:Parameter Name="Active" Type="Boolean" />
                    <asp:Parameter Direction="InputOutput" Name="EntityId" Type="Object" />
                </InsertParameters>
                <SelectParameters>
                    <asp:Parameter Name="PersonId" Type="Int32" />
                </SelectParameters>
                <UpdateParameters>
                    <asp:Parameter Name="Name" Type="String" />
                    <asp:Parameter Name="CompanyRegNo" Type="String" />
                    <asp:Parameter Name="DateCreated" Type="DateTime" />
                    <asp:Parameter Name="VATRegNo" Type="String" />
                    <asp:Parameter Name="EntityTypeId" Type="Int32" />
                    <asp:Parameter Name="Active" Type="Boolean" />
                    <asp:Parameter Name="Original_ID" Type="Int32" />
                </UpdateParameters>
            </asp:ObjectDataSource>
        </td>
        <td valign="top">
            <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
                Width="400px">
                <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
                    <HeaderTemplate>
                        Edit/Delete</HeaderTemplate>
                    <ContentTemplate>
                        <table style="width: 99%;">
                            <tr>
                                <td class="style8">
                                    Business Name: *</td>
                                <td>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Name") %>' Width="160px" />
                                    <br />
                                    <asp:Label ID="lblEditNameRequired" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="style9">
                                    Company Reg No:
                                </td>
                                <td class="style10">
                                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("CompanyRegNo") %>' /><asp:MaskedEditExtender
                                        ID="MaskedEditExtender1" runat="server" TargetControlID="TextBox2" Mask="9999999"
                                        ErrorTooltipEnabled="True" Enabled="True" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder=""
                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder=""
                                        CultureTimePlaceholder="" Century="2000">
                                    </asp:MaskedEditExtender>
                                </td>
                            </tr>
                            <tr>
                                <td class="style8">
                                    VAT Reg No:
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("VATRegNo") %>' /><asp:MaskedEditExtender
                                        ID="MaskedEditExtender2" runat="server" TargetControlID="TextBox3" Mask="GB9999999999"
                                        ErrorTooltipEnabled="True" Enabled="True" MaskType="Number" CultureAMPMPlaceholder=""
                                        CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder=""
                                        CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Century="2000">
                                    </asp:MaskedEditExtender>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top" class="style8">
                                    Business Type: *</td>
                                <td>
                                    <asp:DropDownList ID="DropDownList2" runat="server" AppendDataBoundItems="True" DataSourceID="ddlEntityTypeODS0"
                                        DataTextField="Name" DataValueField="Id" Width="160px">
                                        <asp:ListItem Value="0">Pick one please...</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:ObjectDataSource ID="ddlEntityTypeODS0" runat="server" DeleteMethod="Delete"
                                        InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
                                        TypeName="LogginsLogDSTableAdapters.usp_lkp_EntityTypeSelectTableAdapter" UpdateMethod="Update">
                                        <DeleteParameters>
                                            <asp:Parameter Name="Id" Type="Int32" />
                                        </DeleteParameters>
                                        <InsertParameters>
                                            <asp:Parameter Name="Name" Type="String" />
                                            <asp:Parameter Name="Active" Type="Boolean" />
                                        </InsertParameters>
                                        <SelectParameters>
                                            <asp:Parameter DefaultValue="" Name="Id" Type="Int32" />
                                        </SelectParameters>
                                        <UpdateParameters>
                                            <asp:Parameter Name="Id" Type="Int32" />
                                            <asp:Parameter Name="Name" Type="String" />
                                            <asp:Parameter Name="Active" Type="Boolean" />
                                        </UpdateParameters>
                                    </asp:ObjectDataSource>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:TabContainer ID="TabContainer3" runat="server" ActiveTabIndex="0" 
                                        Width="360px">
                                        <asp:TabPanel ID="TabPanel13" runat="server" HeaderText="TabPanel1">
                                            <HeaderTemplate>
                                                Email
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <table style="width: 100%;">
                                                    <tr>
                                                        <td class="style7">
                                                            Sender Name :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSenderNameUpdate" runat="server" Width="160px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style7">
                                                            Sender Email:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSenderEmailUpdate" runat="server" Width="160px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style7">
                                                            Opt In Method:
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlOptInMethodUpdate" runat="server" 
                                                                DataSourceID="ObjectDataSource5" DataTextField="Name" DataValueField="Id">
                                                            </asp:DropDownList>
                                                            <asp:ObjectDataSource ID="ObjectDataSource5" runat="server" 
                                                                DeleteMethod="Delete" InsertMethod="Insert" 
                                                                OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
                                                                TypeName="LogginsLogDSTableAdapters.usp_lkp_OptinMethodTableAdapter" 
                                                                UpdateMethod="Update">
                                                                <DeleteParameters>
                                                                    <asp:Parameter Name="Id" Type="Int32" />
                                                                </DeleteParameters>
                                                                <InsertParameters>
                                                                    <asp:Parameter Name="Name" Type="String" />
                                                                    <asp:Parameter Name="Active" Type="Boolean" />
                                                                </InsertParameters>
                                                                <SelectParameters>
                                                                    <asp:Parameter Name="Id" Type="Int32" />
                                                                </SelectParameters>
                                                                <UpdateParameters>
                                                                    <asp:Parameter Name="Id" Type="Int32" />
                                                                    <asp:Parameter Name="Name" Type="String" />
                                                                    <asp:Parameter Name="Active" Type="Boolean" />
                                                                </UpdateParameters>
                                                            </asp:ObjectDataSource>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style7">
                                                            TrackItems:
                                                        </td>
                                                        <td>
                                                            <asp:CheckBox ID="chkEmailTrackItemsUpdate" runat="server" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </asp:TabPanel>
                                        <asp:TabPanel ID="TabPanel14" runat="server" HeaderText="TabPanel2">
                                            <HeaderTemplate>
                                                SMS
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <table style="width: 100%;">
                                                    <tr>
                                                        <td class="style7">
                                                            Sender Name:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSmsSenderNameUpdate" runat="server" Text='<%# Bind("Name") %>'
                                                                Width="160px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style7">
                                                            SMS Originator:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSmsOriginatorUpdate" runat="server" Width="160px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style7">
                                                            Track Items:
                                                        </td>
                                                        <td>
                                                            <asp:CheckBox ID="chkSMSTrackItemsUpdate" runat="server" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </asp:TabPanel>
                                    </asp:TabContainer>
                                </td>
                            </tr>
                            <tr>
                                <td class="style8">
                                    &nbsp;&nbsp;
                                </td>
                                <td>
                                    <asp:Button ID="Button2" runat="server" Text="Update" />
                                    &nbsp;<asp:Button ID="Button3" runat="server" Text="Delete" />
                                    <asp:ConfirmButtonExtender ID="Button3_ConfirmButtonExtender" runat="server" ConfirmText="Delete this Item?"
                                        Enabled="True" TargetControlID="Button3">
                                    </asp:ConfirmButtonExtender>
                                    <br />
                                    <asp:Label ID="lblError" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>
                        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" DeleteMethod="Delete"
                            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataBy"
                            TypeName="LogginsLogDSTableAdapters.usp_EntityTableAdapter" UpdateMethod="Update">
                            <DeleteParameters>
                                <asp:Parameter Name="EntityID" Type="Int32" />
                            </DeleteParameters>
                            <InsertParameters>
                                <asp:Parameter Name="Name" Type="String" />
                                <asp:Parameter Name="CompanyRegNo" Type="String" />
                                <asp:Parameter Name="DateCreated" Type="DateTime" />
                                <asp:Parameter Name="VATRegNo" Type="String" />
                                <asp:Parameter Name="EntityTypeId" Type="Int32" />
                                <asp:Parameter Name="Active" Type="Boolean" />
                                <asp:Parameter Direction="InputOutput" Name="EntityId" Type="Object" />
                            </InsertParameters>
                            <SelectParameters>
                                <asp:ControlParameter ControlID="GridView1" Name="EntityID" PropertyName="SelectedValue"
                                    Type="Int32" />
                            </SelectParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="Name" Type="String" />
                                <asp:Parameter Name="CompanyRegNo" Type="String" />
                                <asp:Parameter Name="DateCreated" Type="DateTime" />
                                <asp:Parameter Name="VATRegNo" Type="String" />
                                <asp:Parameter Name="EntityTypeId" Type="Int32" />
                                <asp:Parameter Name="Active" Type="Boolean" />
                                <asp:Parameter Name="Original_ID" Type="Int32" />
                            </UpdateParameters>
                        </asp:ObjectDataSource>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
                    <HeaderTemplate>
                        Insert</HeaderTemplate>
                    <ContentTemplate>
                        <table style="width: 100%;">
                            <tr>
                                <td class="style8">
                                    Business Name: *</td>
                                <td>
                                    <asp:TextBox ID="NameTextBox" runat="server" Text='<%# Bind("Name") %>' Width="160px" />
                                    <br />
                                    <asp:Label ID="lblInsertNameRequired" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="style8">
                                    Company Reg No:
                                </td>
                                <td>
                                    <asp:TextBox ID="CompanyRegNoTextBox" runat="server" Text='<%# Bind("CompanyRegNo") %>' /><asp:MaskedEditExtender
                                        ID="CompanyRegNoTextBox_MaskedEditExtender" runat="server" TargetControlID="CompanyRegNoTextBox"
                                        Mask="9999999" ErrorTooltipEnabled="True" Enabled="True" CultureAMPMPlaceholder=""
                                        CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder=""
                                        CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="">
                                    </asp:MaskedEditExtender>
                                </td>
                            </tr>
                            <tr>
                                <td class="style8">
                                    VAT Reg No:
                                </td>
                                <td>
                                    <asp:TextBox ID="VATRegNoTextBox" runat="server" Text='<%# Bind("VATRegNo") %>' /><asp:MaskedEditExtender
                                        ID="VATRegNoTextBox_MaskedEditExtender" runat="server" TargetControlID="VATRegNoTextBox"
                                        Mask="GB99999999999" ErrorTooltipEnabled="True" Enabled="True" MaskType="Number"
                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat=""
                                        CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder=""
                                        CultureTimePlaceholder="">
                                    </asp:MaskedEditExtender>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top" class="style8">
                                    Business Type: *</td>
                                <td>
                                    <asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="True" DataSourceID="ddlEntityTypeODS"
                                        DataTextField="Name" DataValueField="Id" Width="160px">
                                        <asp:ListItem Value="0">Pick one please...</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:ObjectDataSource ID="ddlEntityTypeODS" runat="server" DeleteMethod="Delete"
                                        InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
                                        TypeName="LogginsLogDSTableAdapters.usp_lkp_EntityTypeSelectTableAdapter" UpdateMethod="Update">
                                        <DeleteParameters>
                                            <asp:Parameter Name="Id" Type="Int32" />
                                        </DeleteParameters>
                                        <InsertParameters>
                                            <asp:Parameter Name="Name" Type="String" />
                                            <asp:Parameter Name="Active" Type="Boolean" />
                                        </InsertParameters>
                                        <SelectParameters>
                                            <asp:Parameter DefaultValue="" Name="Id" Type="Int32" />
                                        </SelectParameters>
                                        <UpdateParameters>
                                            <asp:Parameter Name="Id" Type="Int32" />
                                            <asp:Parameter Name="Name" Type="String" />
                                            <asp:Parameter Name="Active" Type="Boolean" />
                                        </UpdateParameters>
                                    </asp:ObjectDataSource>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:TabContainer ID="TabContainer2" runat="server" ActiveTabIndex="0" 
                                        Width="360px">
                                        <asp:TabPanel ID="TabPanel11" runat="server" HeaderText="TabPanel1">
                                            <HeaderTemplate>
                                                Email
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <table style="width: 100%;">
                                                    <tr>
                                                        <td class="style7" valign="middle">
                                                            Sender Name:</td>
                                                        <td>
                                                            <asp:TextBox ID="txtEmailSenderNameInsert" runat="server" Width="160px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style7" valign="middle">
                                                            Sender Email:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtEmailSenderEmailInsert" runat="server" Width="60px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style7" valign="top">
                                                            Opt In Method:
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlOptInMethodOnsert" runat="server" 
                                                                datasourceid="ObjectDataSource6" DataTextField="Name" DataValueField="Id">
                                                            </asp:DropDownList>
                                                            <asp:ObjectDataSource ID="ObjectDataSource6" runat="server" 
                                                                DeleteMethod="Delete" InsertMethod="Insert" 
                                                                OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
                                                                TypeName="LogginsLogDSTableAdapters.usp_lkp_OptinMethodTableAdapter" 
                                                                UpdateMethod="Update">
                                                                <DeleteParameters>
                                                                    <asp:Parameter Name="Id" Type="Int32" />
                                                                </DeleteParameters>
                                                                <InsertParameters>
                                                                    <asp:Parameter Name="Name" Type="String" />
                                                                    <asp:Parameter Name="Active" Type="Boolean" />
                                                                </InsertParameters>
                                                                <SelectParameters>
                                                                    <asp:Parameter Name="Id" Type="Int32" />
                                                                </SelectParameters>
                                                                <UpdateParameters>
                                                                    <asp:Parameter Name="Id" Type="Int32" />
                                                                    <asp:Parameter Name="Name" Type="String" />
                                                                    <asp:Parameter Name="Active" Type="Boolean" />
                                                                </UpdateParameters>
                                                            </asp:ObjectDataSource>
                                                            <asp:Label ID="lblFillOptIn" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style7" valign="middle">
                                                            Track Items:</td>
                                                        <td>
                                                            <asp:CheckBox ID="chkEmailTrackItemsInsert" runat="server" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </asp:TabPanel>
                                        <asp:TabPanel ID="TabPanel12" runat="server" HeaderText="TabPanel2">
                                            <HeaderTemplate>
                                                SMS
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <table style="width: 100%;">
                                                    <tr>
                                                        <td class="style7">
                                                            Sender Name:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSmsSenderNameInsert" runat="server" Width="160px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style7">
                                                            SMS Originator:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSmsOriginatorInsert" runat="server" Width="160px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style7">
                                                            Track Items:
                                                        </td>
                                                        <td>
                                                            <asp:CheckBox ID="chkTrackItemsInsert" runat="server" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </asp:TabPanel>
                                    </asp:TabContainer>
                                </td>
                            </tr>
                            <tr>
                                <td class="style8">
                                </td>
                                <td>
                                    <asp:Button ID="Button1" runat="server" Text="Submit" />
                                </td>
                            </tr>
                        </table>
                        <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" DeleteMethod="Delete"
                            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataBy"
                            TypeName="LogginsLogDSTableAdapters.usp_EntityTableAdapter" UpdateMethod="Update">
                            <DeleteParameters>
                                <asp:Parameter Name="EntityID" Type="Int32" />
                            </DeleteParameters>
                            <InsertParameters>
                                <asp:Parameter Name="Name" Type="String" />
                                <asp:Parameter Name="CompanyRegNo" Type="String" />
                                <asp:Parameter Name="DateCreated" Type="DateTime" />
                                <asp:Parameter Name="VATRegNo" Type="String" />
                                <asp:Parameter Name="EntityTypeId" Type="Int32" />
                                <asp:Parameter Name="Active" Type="Boolean" />
                                <asp:Parameter Direction="Output" Name="EntityId" Type="Object" />
                            </InsertParameters>
                            <SelectParameters>
                                <asp:ControlParameter ControlID="GridView1" Name="EntityID" PropertyName="SelectedValue"
                                    Type="Int32" />
                            </SelectParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="Name" Type="String" />
                                <asp:Parameter Name="CompanyRegNo" Type="String" />
                                <asp:Parameter Name="DateCreated" Type="DateTime" />
                                <asp:Parameter Name="VATRegNo" Type="String" />
                                <asp:Parameter Name="EntityTypeId" Type="Int32" />
                                <asp:Parameter Name="Active" Type="Boolean" />
                                <asp:Parameter Name="Original_ID" Type="Int32" />
                            </UpdateParameters>
                        </asp:ObjectDataSource>
                    </ContentTemplate>
                </asp:TabPanel>
            </asp:TabContainer>
        </td>
    </tr>
    <tr>
        <td class="style1">
        </td>
    </tr>
    <tr>
        <td class="style1">
            &nbsp;
        </td>
    </tr>
</table>
